// PartFunctionDB.h: interface for the PartFunctionDB class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_PARTFUNCTIONDB_H__ECEA3074_D599_497F_BCCF_C8AE5A4E4716__INCLUDED_)
#define AFX_PARTFUNCTIONDB_H__ECEA3074_D599_497F_BCCF_C8AE5A4E4716__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "FunctionObject.h"
#include "part.h"
#include "Register.h"
#include "ObjectGenerator.h"
#include "FunctionFormerManager.h"

class PartFunctionDB : public FunctionFormerManager
{

public:
	PartFunctionDB(Part* pPart, _ConnectionPtr& pConn);
	virtual ~PartFunctionDB();

public:
	BOOL CreatePart();

private:
	const _ConnectionPtr& GetFunciontDB();
	BOOL GetFunctionSet();
	CString GetParentFunction(const CString& strPartID, const CString& strStandard);
	void GetFunctionTable();

private:
	BOOL GetJointFunction();
	CString m_strFunctionTable;
	
	_ConnectionPtr m_pCon;

};

#endif // !defined(AFX_PARTFUNCTIONDB_H__ECEA3074_D599_497F_BCCF_C8AE5A4E4716__INCLUDED_)
